//
//  EntityController.h
//  genePool9b2b
//
//  Created by Greg Dunn on 2/8/10.
//  Copyright 2010 Apple Inc. All rights reserved.
//

#import "SSVector3D.h"
#import "SSEntityView.h"
#import "SSEntity.h"

@interface SSEntityController : CCNode {
	SSEntity *entityModel;	
	SSEntityView *entityView;
	SSVector3D *entityForceVector;	
}

@property (nonatomic, assign) SSEntity *entityModel;
@property (nonatomic, assign) SSEntityView *entityView;
@property (nonatomic, assign) SSVector3D *entityForceVector;

- (void) setMaxVelocity:(SSVector3D *)localVector;
- (CGPoint) updateForceVector:(SSVector3D *)localVector withDeltaTime:(ccTime)localDeltaTime;
- (CGPoint) updateViewPosition:(SSVector3D *)localForceVector;

-(void)onHit;
-(BOOL)isDead;
//-(void)onHitWithWeapon; //TODO
@end
